using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.Data.Filtering;
namespace ChuanPlus.FormControl
{
    public partial class ControlViewSample : DevExpress.XtraEditors.XtraUserControl
    {
        public ControlViewSample()
        {
            InitializeComponent();
            dateFrom.DateTime = dateTo.DateTime = DateTime.Today;
            GetFilter();
        }

        private void buttonGo_Click(object sender, EventArgs e)
        {
            GetFilter();
        }
        private void GetFilter()
        {
            xpColSample.Criteria = new BetweenOperator("TakenDate",dateFrom.DateTime,dateTo.DateTime);
        }

        private void ControlViewSample_Load(object sender, EventArgs e)
        {

        }
    }
}
